home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / ADA / GNAT / !gcc / adainc / 2 / ads / a-stream < prev    next >
Text File  |  1996-02-12  |  2KB  |  52 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                          A D A . S T R E A M S                           --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.8 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18.  
  19. package Ada.Streams is
  20. pragma Pure (Streams);
  21.  
  22.    type Root_Stream_Type is abstract tagged limited private;
  23.  
  24.    type Stream_Element is mod 2 ** Standard'Storage_Unit;
  25.  
  26.    type Stream_Element_Offset is range
  27.      -(2 ** (Standard'Address_Size - 1)) ..
  28.      +(2 ** (Standard'Address_Size - 1)) - 1;
  29.  
  30.    subtype Stream_Element_Count is
  31.       Stream_Element_Offset range 0 .. Stream_Element_Offset'Last;
  32.  
  33.    type Stream_Element_Array is
  34.       array (Stream_Element_Offset range <>) of Stream_Element;
  35.  
  36.    procedure Read
  37.      (Stream : in out Root_Stream_Type;
  38.       Item   : out Stream_Element_Array;
  39.       Last   : out Stream_Element_Offset)
  40.    is abstract;
  41.  
  42.    procedure Write
  43.      (Stream : in out Root_Stream_Type;
  44.       Item   : in Stream_Element_Array)
  45.    is abstract;
  46.  
  47. private
  48.  
  49.    type Root_Stream_Type is abstract tagged limited null record;
  50.  
  51. end Ada.Streams;
  52.